<?php
echo "<pre>";
// define array
$cities = array (
  0 => 'London',
  1 => 'Paris',
  2 => 'Barcelona',
  'United States' => 'Lisbon',
  4 => 'Zurich',
);
print_r($cities);
// search array for value
$a = array_search('Lisbon', $cities);
var_dump($a);exit;
$b = array_search(
'Barcelona', $cities);
var_dump($b);
